Component({
    properties: {
        datas: {
            type: null
        },
        poster: {
            type: null
        },
        component_id: {
            type: null
        }
    },
    data: {
        emptyImage: "https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/backtotop@2x.png",
        clientWidth: "375"
    },
    lifetimes: {
        attached: function() {},
        moved: function() {},
        detached: function() {}
    },
    attached: function() {},
    ready: function() {
        this.setData({
            clientWidth: wx.getSystemInfoSync().windowWidth
        });
    },
    methods: {
        backup: function(t) {
            1 != this.data.poster ? wx.pageScrollTo ? wx.pageScrollTo({
                scrollTop: 0
            }) : wx.showModal({
                title: "提示",
                content: "当前微信版本过低，无法使用该功能，请升级到最新微信版本后重试。"
            }) : this.triggerEvent("posterClick");
        }
    }
});